#ifndef CANREADTHREAD_H
#define CANREADTHREAD_H
#include <QThread>
#include <QtCore/QDateTime>
#include <QStandardItem>
#include "CANPar.h"

class CanReadThread:public QThread
{
        Q_OBJECT
public:
    CanReadThread(QObject *Parent=0);
protected:
    void run();
signals:
    void CrdtSignal(int);
public slots:
    void CrdtSlot();
private:
    int number;
    QStandardItem *CANID_Item;       //Qt::UserRole+1   CANID
    QStandardItem *CANdata_Item;     //Qt::UserRole+2   CANdata
    QStandardItem *CANEQtime_Item;   //Qt::UserRole+3   CAN设备时间戳
    QStandardItem *CANEQtimedex_Item;//Qt::UserRole+3   CAN设备时间戳的差值 --周期
    QStandardItem *CANSYStime_Item;  //Qt::UserRole+4   系统时间
    QStandardItem *CANcount_Item;    //Qt::UserRole+5   CAN帧数
    QStandardItem *CANRWbit_Item;    //Qt::UserRole+5   CAN数据读写位


    QStandardItem *CAN2ID_Item;       //Qt::UserRole+1   CANID
    QStandardItem *CAN2data_Item;     //Qt::UserRole+2   CANdata
    QStandardItem *CAN2EQtime_Item;   //Qt::UserRole+3   CAN设备时间戳
    QStandardItem *CAN2EQtimedex_Item;//Qt::UserRole+3   CAN设备时间戳的差值 --周期
    QStandardItem *CAN2SYStime_Item;  //Qt::UserRole+4   系统时间
    QStandardItem *CAN2count_Item;    //Qt::UserRole+5   CAN帧数
    QStandardItem *CAN2RWbit_Item;    //Qt::UserRole+5   CAN数据读写位






};

#endif // CANREADTHREAD_H
